package util.AST.Terminal;

import checker.SemanticException;
import checker.Visitor;
import scanner.Token;
import util.AST.AST;

public abstract class Terminal extends AST{
	
	Token token = new Token(0, null, 0, 0);
	
	//TODO observar usabilidade do spelling
	private String spelling;
	
	public Terminal(Token token) {
		super();
		this.token = token;
	}

	public Token getToken() {
		return token;
	}

	public void setToken(Token token) {
		this.token = token;
	}
	
	public Object visit(Visitor v, Object o) throws SemanticException {
		// TODO Auto-generated method stub
		return v.visitTerminal(this, o);
	}
}
